home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
editors
/
tscredd2
/
scrdisk5.exe
/
arc
/
TESTMOUS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1990-02-26
|
1KB
|
52 lines
uses Crt,Scredit,ScrMouse;
Begin
ClrScr;gotoxy(20,4);
If Not S_MouseInstalled Then
Begin
WriteLn('Mouse Driver is not in memory!');Halt;
End;
WriteLn('Mouse Driver is ACTIVE and has ',
S_Buttons:1,' buttons.');
gotoxy(32,10);Writeln('Press ESC to end.');
S_ActivateMouse;
S_SetMouseEvent('01111110');
S_ShowMouse;
S_SetMouseRange(10,6,70,9);
Repeat
GoToxy(20,6);
Write('Mouse Cursor Location.. Row:',
S_MsRow:2,' Column:',S_MsCol:2);
Gotoxy(10,8);
If S_MsLeftPressed Then Write('[ Left Pressed ]')
Else If S_MsLeftReleased Then Write('[ Left Released ]')
Else Write('[ *** Left *** ]');
Gotoxy(50,8);
If S_MsRightPressed Then Write('[ Right Pressed ]')
Else If S_MsRightReleased Then Write('[ Right Released ]')
Else Write('[ *** Right *** ]');
Gotoxy(30,8);
If S_MsMiddlePressed Then Write('[ Middle Pressed ]')
Else If S_MsMiddleReleased Then Write('[ Middle Released ]')
Else Write('[ *** Middle *** ]');
S_ResetMouseFlags;
S_NextKey;
If S_MouseEvent then
S_AnalizeMouse;
Until S_Esc;
S_HideMouse;
S_DisableMouse;
End.